// 指令注册于导出
// 引入Directive 和 app
import { Directive, App } from 'vue';
import permission from './permission';
// 放入类中
const directives = {
    permission
};
// 注册指令
const registerDirective = (app: App) => {
    Object.keys(directives).forEach((key) => {
        app.directive(key, (directives as { [key: string]: Directive })[key]);
    });
};
export default registerDirective;